package com.service;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.dao.UploadfileMapper;
import com.entity.Uploadfile;
@Service
public class UploadService {
	
	@Resource
	UploadfileMapper mapper;
	
	public int add(Uploadfile upload){
		return mapper.insert(upload);
	}
	public Uploadfile select(int id){
		return mapper.selectByPrimaryKey(id);
	}
	public List<Uploadfile> selectByPrimaryKeyList(int id){
		return mapper.selectByPrimaryKeyList(id);
	}
	public List<Uploadfile> selectAll(){
		return mapper.selectAll();
	}
	public int delete(int id){
		return mapper.deleteByPrimaryKey(id);
	}
	public int update(Uploadfile uploadfile){
		return mapper.updateByPrimaryKeySelective(uploadfile);
	}
	public List<Uploadfile> selectYnumber(int ynumber){
		return mapper.selectYnumber(ynumber);
	}
	public List<Uploadfile> selectTimeAddress(Map<String,Object>map){
		return mapper.seleectTimeAndAddress(map);
	}
	public List<Uploadfile> getAddress(String addr){
		return mapper.getAddress(addr);
	}
	public List<Uploadfile> selectYnameOrYphone(Map<String,Object>map){
		return mapper.selectYnameOrYphone(map);
	}
	public List<Uploadfile> selectByPage(Map<String,Object> map){
		return mapper.selectByPage(map);
	}
	public List<Uploadfile> selectYnameYphoneByPage(Map<String,Object> map){
		return mapper.selectYnameYphoneByPage(map);
	}
	public List<Uploadfile> selectYnumberByPage(Map<String,Object>map){
		return mapper.selectYnumberByPage(map);
	}
	public List<Uploadfile> selectYnumberAndAddress(Map<String,Object> map){
		return mapper.selectYnumberAndAddress(map);
	}
	
	public List<Uploadfile> selectTimeAndUnitdoor(Map<String,Object> map){
		return mapper.selectTimeAndUnitdoor(map);
	}
	
	public List<Uploadfile> selectTimeAndUnitdoorAll(Map<String,Object> map){
		return mapper.selectTimeAndUnitdoorAll(map);
	}
	//大门
	public List<Uploadfile> selectTimeAndUnitdoorAllto(Map<String,Object> map){
		return mapper.selectTimeAndUnitdoorAllto(map);
	}
	public List<Uploadfile> fail(Map<String,Object> map){
		return mapper.fail(map);
	}
	
	public List<Uploadfile> gunfail(String str){
		return mapper.gunfail(str);
	}
	
	public List<Uploadfile> FailedFaceDetection(String address){
		return mapper.FailedFaceDetection(address);
	}
	
	public List<Uploadfile> cshnumber(){
		return 	mapper.cshnumber();
	}
}
